import { createRouter, createWebHashHistory } from "vue-router";
import Search from "../components/Search.vue";
import Detailpage from "../components/Detailpage.vue";
import SearchArticleRepeatDetailPage from "../components/SearchArticleRepeatDetailPage.vue";

const routes = [
  { path: "/", redirect: '/Search/All' },
  { path: "/Search/All", name: "Search", component: Search },
  {path: '/Search/item', name: 'Detailpage', component: Detailpage},
  {path: '/Search/ArticleRepeatItem', name: 'SearchArticleRepeatDetailPage', component: SearchArticleRepeatDetailPage}
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;